<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page session="false"%>
<html>
<head>
<title>Company List</title>
</head>
<body>
	<%@include file="/WEB-INF/views/confirmCompanyInfo.jsp"%>
	<%@include file="/WEB-INF/views/confirmCompanyDelete.jsp"%>
	<td><a href ="/smartpush_license/company/create"><input type="button" value="업체 등록" id="companyReg"></a></td>
	<td><a href = "/smartpush_license/license/createForm"><input type="button" value="라이센스 등록" id="licenseReg"></a></td>
	<br>
	<table border="1" style="text-align: center;">
		<tr>
			<td>No.</td>
			<td>업체명</td>
			<td>Host명</td>
			<td>제품명</td>
			<td>Ver.</td>
			<td>Unlimit/Limit</td>
			<td>디바이스 등록제한 개수</td>
			<td>만료일자</td>
			<td>등록일자</td>
			<td>수정일자</td>
			<td>수정</td>
			<td>삭제</td>
			<td>다운로드</td>
		</tr>
		<c:forEach items="${license}" var="license" varStatus="status">
			<tr>
				<td>${status.count}</td>
				<td><a id="companyInfo" value= "${license.id}" companyName="${license.company.companyName}" email="${license.company.email}" tel1="${license.company.tel1}" tel2="${license.company.tel2}" tel3="${license.company.tel3}">${license.company.companyName}</a></td>
				<td>${license.hostId}</td>
				<td>${license.pName}</td>
				<td>${license.version}</td>
				<td>${license.unLimit}</td>
				<td>${license.maxDeviceCnt}</td>
				<td><fmt:formatDate value="${license.expiredDate}"
						pattern="yyyy.MM.dd" /></td>
				<td><fmt:formatDate value="${license.created}"
						pattern="yyyy.MM.dd" /></td>
				<td><fmt:formatDate value="${license.modified}"
						pattern="yyyy.MM.dd" /></td>
				<td><input type="button" value="수정" id="modify" licenseId="${license.id}"></td>
				<td><input type="button" value="삭제" id="delete" licenseId="${license.id}" companyName="${license.company.companyName}"></td>
				<td><input id = "exportLicenseFile" type="button" value="다운로드" licenseId="${license.id}"></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>
<link rel="stylesheet" type="text/css" href="	/smartpush_license/resources/css/bootstrap.css" />
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/home/home.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/bootstrap-modal.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/util/modalUtil.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/finish.js"></script>
